Skip to content

refactor autoencoder_magvit tests#13834

Merged
sayakpaul merged 3 commits into
huggingface:mainfrom
akshan-main:tests-refactor-autoencoder-magvit
Jun 3, 2026
Merged

refactor autoencoder_magvit tests#13834
sayakpaul merged 3 commits into
huggingface:mainfrom
akshan-main:tests-refactor-autoencoder-magvit

Conversation

@akshan-main
Copy link
Copy Markdown
Contributor

@akshan-main akshan-main commented May 29, 2026

What does this PR do?

Part of the ongoing modeling-test migration (following #13369 and #13153). Migrates the AutoencoderKLMagvit test suite to the mixin-based structure (Config + ModelTesterMixin / TrainingTesterMixin / MemoryTesterMixin / NewAutoencoderTesterMixin).

Before submitting

Who can review?

@sayakpaul @DN6

@github-actions github-actions Bot added tests size/M PR with diff < 200 LOC labels May 29, 2026
Copy link
Copy Markdown
Collaborator

@DN6 DN6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akshan-main Any idea what's going on with the test failures?

@akshan-main
Copy link
Copy Markdown
Contributor Author

this shouldn't fail. Previous PR failed because of a ruff check

@akshan-main akshan-main requested a review from DN6 June 1, 2026 19:21
Comment on lines +105 to +107
@pytest.mark.skip("Unsupported test.")
def test_forward_with_norm_groups(self):
pass
super().test_forward_with_norm_groups()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit): we are skipping anyway, so pass is also fine

@sayakpaul sayakpaul merged commit 5385b2a into huggingface:main Jun 3, 2026
12 of 13 checks passed
@sayakpaul
Copy link
Copy Markdown
Member

Failing tests are unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M PR with diff < 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants